package com.ln.yygh.hosp.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.*;

/**
 * @author: lianXiaoChen
 * @create: 2021-04-26 16:27
 */
@Configuration
@MapperScan("com.ln.yygh.hosp.mapper")
public class MyMpConfig {
    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}

